console.log('script start-111')

setTimeout(function () {
  console.log('timeout1--222')
}, 10)

new Promise((resolve) => {
  console.log('promise1---333')
  resolve()
  setTimeout(() => console.log('timeout2--444'), 10)
}).then(function () {
  console.log('then1---555')
})

console.log('script end---666')

// 111>333
